package com.schoolgard.entitybean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Mapinfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "MAPINFO")
public class Mapinfo implements java.io.Serializable {

	// Fields

	private Long id;
	private Long parentid;
	private String pic;
	private String imgpath;
	private String svrip;

	// Constructors

	/** default constructor */
	public Mapinfo() {
	}

	/** minimal constructor */
	public Mapinfo(Long id) {
		this.id = id;
	}

	/** full constructor */
	public Mapinfo(Long id, Long parentid, String pic, String imgpath,
			String svrip) {
		this.id = id;
		this.parentid = parentid;
		this.pic = pic;
		this.imgpath = imgpath;
		this.svrip = svrip;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "PARENTID", precision = 10, scale = 0)
	public Long getParentid() {
		return this.parentid;
	}

	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}

	@Column(name = "PIC")
	public String getPic() {
		return this.pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	@Column(name = "IMGPATH", length = 510)
	public String getImgpath() {
		return this.imgpath;
	}

	public void setImgpath(String imgpath) {
		this.imgpath = imgpath;
	}

	@Column(name = "SVRIP", length = 100)
	public String getSvrip() {
		return this.svrip;
	}

	public void setSvrip(String svrip) {
		this.svrip = svrip;
	}

}